package com.onesports.intelligent.k12.polarlight.domain.dto.sys;

import com.onesports.framework.kit.common.valid.Length;
import com.onesports.framework.kit.common.valid.NotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author perry_xiong
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PasswordChangeDTO {

    @ApiModelProperty("用户id")
    @NotBlank
    private String id;


    @ApiModelProperty(value = "旧密码")
    @NotEmpty(message = "请输入旧密码")
    private String currentPassword;

    @ApiModelProperty("新密码")
    @NotEmpty(message = "请输入新密码")
    private String newPassword;

}